package com.anxinr.service.impl;

import com.anxinr.mapper.GoodsMapper;
import com.anxinr.pojo.entity.Goods;
import com.anxinr.service.GoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * @author : anxinr
 * @date : 2023/2/3 11:46
 */
@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {

    @Override
    public boolean reduceInventory(Long id) {
        return this.baseMapper.reduceInventory(id) ;
    }
}
